import { envConfig } from './config/index'

const BASE = envConfig.host
const DISPENSE_BASE = `${BASE}dispense/applet/`
const AIFORUM_BASE = `${BASE}ai-forum/applet/`
const IM_BASE = `${BASE}gov-im-service/im/`
const CRM_BASE = `${BASE}crm-service/applet/`
const OA_BASE = `${BASE}oa-service/applet/`
const COMPANY_BASE = `${BASE}company-center/applet/`
const MALL_BASE = `${BASE}additional-provider/`
const WEBVIEW_BASE = `${BASE}jiatui-h5/`

const INSTRUCTION = `${BASE}gov-instruct/`
const GOVCONTENT = `${BASE}gov-content/`
const ORGANIZATION = `${BASE}gov-organization-management/`
const MIDWARE = `${BASE}gov-instruct-process-midware/`
export default  {
  loginUrl: `${BASE}wxauth/applet/authorization/userinfo/get`,
  pureLoginTemppUrl: `${BASE}arch-login-center/card/business/applet/simple/login`,
  pureLoginUrl: `${BASE}gov-login/applet/api/pure/login`,
  refreshTokenUrl: `${BASE}gov-login/applet/api/refresh/v2`,
  companyConfigUrl: `${OA_BASE}company/configuration`,
  fileUploadUrl: `${BASE}gov-file-upload/single-upload`, // 单个文件上传
  modulesNameConfigVoUrl: `${BASE}oa-service-front/bussniess/config/query/modulesNameConfig`, // 获取名片页模块
  systemConfigUrl: `${BASE}oa-service/system/config/applet/get`,
  appletStatusQueryUrl: `${OA_BASE}company/api/code/component/info/query`,
  cardQrcodeProduceUrl: `${DISPENSE_BASE}qrcode/produce`,
  getDefaultCardUrl: `${DISPENSE_BASE}card/authorize/random/get`,
  cardQrcodeParseUrl: `${DISPENSE_BASE}qrcode/scene/get`,
  cardQrcodeParseWhtioutAuthUrl: `${DISPENSE_BASE}qrcode/scene/without/author/get`,
  distributeParseUrl: `${DISPENSE_BASE}distribute/do`,
  exchangeCardIdUrl: `${BASE}bff/idreplace/idmap/replace/oldIdChangeNewId`,
  handoverRecordUrl: `${BASE}crm-service/lockcustomer/unread/record/query`,
  handoverReadMarkUrl: `${BASE}crm-service/lockcustomer/record/read/flag/update`,
  handoverCardListUrl: `${BASE}crm-service/lockcustomer/unread/record/list`,
  getSahreCardPosterUrl: `${BASE}gov-card-content/poster/applet/poster/not/produce/url/get`,
  browsEventReportUrl: `${BASE}action/applet/card/user/brows`,
  voiceTranslateUrl: `${BASE}gov-im-service/voice/write`,
  getInvalidCardList: `${CRM_BASE}cardHolder/list/invalid`,
  heartbeat: `${BASE}arch-im/im/heartbeat`,
  refreshChatTime: `${IM_BASE}friendship/chat/date/update`,
  createIMuserUrl: `${IM_BASE}token`,
  updateIMToken: `${IM_BASE}token/refresh`,
  updateIMUserLogo: `${BASE}arch-im/im/user/update`,
  commonWords: `${OA_BASE}business/config/query/im/config`,
  feedsReportUrl: `${IM_BASE}feeds/sendFeeds`,
  feedsStatReportUrl: `${IM_BASE}feeds-statistics/report`,
  pageEventUrl: `${BASE}action/data/page/pageEvent`,
  authorizeStatusUrl: `${CRM_BASE}authorize/customer/mobile/status/query`,
  authPhoneUrl: `${CRM_BASE}authorize/customer/mobile/register`,
  getAuthorizationUrl: `${BASE}api/Auth/signature`,
  cardListUrl: `${CRM_BASE}cardHolder/list`,
  activeReportUrl: `${CRM_BASE}relationship/view/date/update`,
  cardStarMark: `${CRM_BASE}cardHolder/mark`,
  cardStarUnMark: `${CRM_BASE}cardHolder/unmark`,
  cardThumbUp: `${CRM_BASE}card/thumbUp`,
  cardCancelThumbUp: `${CRM_BASE}card/cancel/thumbUp`,
  cardLabelThumbUp: `${CRM_BASE}card/label/thumbUp`,
  cardCancelLabelThumbUp: `${CRM_BASE}card/cancel/label/thumbUp`,
  shieldCard: `${CRM_BASE}cardHolder/shieldCard`,
  unShieldCard: `${CRM_BASE}cardHolder/unShieldCard`,
  cardDetailbase: `${COMPANY_BASE}card/base`,
  sendCardMsgUrl: `${DISPENSE_BASE}message/im/send`,
  cardDetailUrl: `${COMPANY_BASE}card/detail`,
  cardMainUrl: `${COMPANY_BASE}card/detail/main`,
  cardColleagueUrl: `${COMPANY_BASE}card/recommended/list/query`,
  companyLabelsUrl: `${COMPANY_BASE}card/detail/company/lables`,
  cardPersonalIntroUrl: `${COMPANY_BASE}card/detail/personal/introduce`,
  cardMediaUrl: `${COMPANY_BASE}card/detail/vedio-pictures`,
  addRelationshipUrl: `${CRM_BASE}relationship/add`,
  getProductCatalogListUrl: `${MALL_BASE}product-catalog/list`,
  getCatalogContentUrl: `${MALL_BASE}product-catalog/get`, // 查看宣传册详情的新接口地址
  getCatalogNumUrl: `${MALL_BASE}product-catalog/count`,
  postOperation: `${MALL_BASE}operation/save`,
  queryHomePageInfoUrl: `${MALL_BASE}mallHomePage/queryHomePageInfo`,
  dynamicProgramaList: `${BASE}dynamic/programa/portionList`,
  getDynamicBannerUrl: `${BASE}dynamic/config-cover/list`,
  getCustomizeModuleUrl: `${BASE}ai-forum/page-element/list`, // 获取大小模块数据
  dynamicListUrl: `${BASE}dynamic/list`,
  dynamicInfoUrl: `${BASE}dynamic/get`,
  deleteCommentUrl: `${BASE}dynamic/comment/delete`,
  dynamicCommentUrl: `${BASE}dynamic/comment/add`,
  dynamicLikeUrl: `${BASE}dynamic/thumbsup/add`,
  dynamicUnlikeUrl: `${BASE}dynamic/thumbsup/delete`,
  dynamicArticleUrl: `${BASE}dynamic/view/article`,
  dynamicConfigUrl: `${BASE}dynamic/config/get`,
  deleteDynamicUrl: `${BASE}dynamic/delete`,
  dynamicBadgeUrl: `${BASE}dynamic/unread/count`, // 获取动态数据的角标
  dynamicHiddenBadgeUrl: `${BASE}dynamic/operation/save`, // 删除角标
  websiteListUrl: `${AIFORUM_BASE}website/content`,
  newsDetailUrl: `${AIFORUM_BASE}website/consult/show`,
  recruitmentDetailUrl: `${AIFORUM_BASE}website/recruitment/show`,
  formListUrl: `${DISPENSE_BASE}form/id/query`,
  getActivityFormListUrl: `${BASE}dispense/application/form/list`,
  formSubmitedCheckUrl: `${DISPENSE_BASE}form/submit/check`,
  formSubmitUrl: `${DISPENSE_BASE}form/data/save`,
  formDataInfoUrl: `${DISPENSE_BASE}form/data/id/query`,
  getSweepCodeUrl: `${DISPENSE_BASE}qrcode/query`,
  cardCommentAdd: `${CRM_BASE}card/bff/comment/add`,
  getCardCommentList: `${CRM_BASE}card/bff/comment/list/query`,
  thumbUpCardComment: `${CRM_BASE}card/bff/comment/thumbs/up`,
  isFellowTownsman: `${CRM_BASE}card/hometown/status/update`,
  isSchoolfellow: `${CRM_BASE}card/schoolmate/status/update`,
  bindStaffRelationship: `${COMPANY_BASE}card/user/bind`,
  bindStaffRelationshipByCard: `${COMPANY_BASE}card/bind/info`,
  queryStaffRelationship: `${COMPANY_BASE}card/user/bind/info`,
  videoTranscoding: `${BASE}ai-forum/vod/video_deal`,
  videoTranscodingResult: `${BASE}ai-forum/vod/query_video_deal`,
  videoUploadSign: `${BASE}ai-forum/vod/video_upload_sign`,
  breifcaseSummary: `${MALL_BASE}brief_case/get_card_summary_applet`,
  breifcaseList: `${MALL_BASE}brief_case/query_files`,
  breifcaseAdd: `${MALL_BASE}brief_case/batch_add_file`,
  breifcaseDelete: `${MALL_BASE}brief_case/delete_files`,
  breifcaseMove: `${MALL_BASE}brief_case/move_files`,
  breifcaseRename: `${MALL_BASE}brief_case/update_file`,
  breifcViewOrCollect: `${MALL_BASE}brief_case/query_card_files`,
  breifcFileInfo: `${MALL_BASE}brief_case/query_the_file`,
  breifcFileChange: `${MALL_BASE}brief_case/add_card_file_info`,
  queryFileDetail: `${MALL_BASE}brief_case/query_file_detail`,
  breifcSummary: `${MALL_BASE}brief_case/get_card_summary`,
  breifStatUrl: `${BASE}action/application/action/event/user/brows`,
  breifGetShareIdUrl: `${BASE}action/application/action/event/mock/share`,
  getCardSendCount: `${BASE}statistics/application/card/card/deliver/count`,
  addCardSendCount: `${BASE}oa-service/application/card/business/cards`,
  getCaseCount: `${BASE}article/case-base/visible/count-with-new`,
  sourceStatUrl: `${BASE}statistics/visitor/save`,
  misimiStatUrl: `${BASE}node-union/misimi/trace-poster`,
  getCommunityListUrl: `${BASE}dispense/civil/community/list`,
  getActivityListUrl: `${BASE}dispense/civil/activity/list`, // 我的活动
  getRecommendActivityListUrl: `${BASE}dispense/civil/activity/recommend-list`, // 推荐活动列表
  getRecommendListUrl: `${BASE}additional-provider/recommend/list`, // 推荐宣传册列表
  getActivityUrl: `${BASE}dispense/civil/activity/find`,
  getAddActLicenseUrl: `${BASE}dispense/activity-license/get-by-login`,
  activityThumbsupUrl: `${BASE}ai-forum/new_thumbsup/add`, // 点赞
  activityThumbsDelUrl: `${BASE}ai-forum/new_thumbsup/del`, // 取消点赞
  activitySign: `${BASE}dispense/civil/activity/member/add`,
  verifiedStatusUrl: `${ORGANIZATION}checkRealNameAuthentication`, // 是否身份认证
  verifiedSubmitUrl: `${ORGANIZATION}realNameAuthentication`, // 身份认证提交
  sayListUrl: `${BASE}dynamic/trifle/list`,
  sayAddUrl: `${BASE}dynamic/trifle/add`, // 微事我言
  sayDetailUrl: `${BASE}dynamic/trifle/get`,
  sayCommentUrl: `${BASE}ai-forum/new_comment/add`,
  sayCommentsUrl: `${BASE}ai-forum/new_comment/query`,
  sayCountfUrl: `${BASE}dynamic/trifle/count`,
  activityCountfUrl: `${BASE}dispense/civil/activity/count`,
  activityFormCountfUrl: `${BASE}dispense/application/form/count`,
  volunteerCreateUrl: `${BASE}civil/volunteer/create`,
  volunteerTypeListUrl: `${BASE}civil/volunteer/service/query`,
  volunteerLicenseUrl: `${BASE}civil/volunteer/license/query`, // 获取协议
  qaListUrl: `${BASE}civil/question/query`,
  qaSubjectUrl: `${BASE}civil/subject/query`,
  qaQuestionUrl: `${BASE}civil/question/get`, // 获取问答详情
  qaSubmitUrl: `${BASE}civil/answer/submit`, // 回答问题提交
  qaPrizesUrl: `${BASE}civil/prizes/query`, // 奖项查询
  qaLotteryUrl: `${BASE}civil/answer/luck`, // 抽奖查询
  getWinningPrizesUrl: `${BASE}civil/winning/prizes/get`, // 领取奖品
  getRecordListUrl: `${BASE}civil/answer-prize/record/list`, // 我的答题记录
  getVolunteerUrl: `${BASE}civil/volunteer/get`, // 查询志愿者信息
  defaultAvatarUrl: `${BASE}gov/mp/images/defaultlogo.png`,
  defaultLogoUrl: `${BASE}gov/mp/images/LOGO50_5020180327.png`,
  defaultMallNoData: `${BASE}gov/mp/images/default-mall.jpg`,
  defaultDynamicNoData: `${BASE}gov/mp/images/default-dynamic.jpg`,
  defaultWebsiteNoData: `${BASE}gov/mp/images/default-website.png`,
  activityDetailUrl: `${WEBVIEW_BASE}interactive/activity/detail`,
  createactivityUrl: `${WEBVIEW_BASE}interactive/activity/create`,
  formDetailUrl: `${WEBVIEW_BASE}form/detail`,
  cardTemplateBusinessConfigUrl: `${BASE}oa-service/card-template-business-config/detail/applet`, // 获取招商名片的配置
  cardTemplateThemeDetailUrl: `${BASE}oa-service/card-template-theme/detail/applet`, // 获取招商名片的详情

  // 指令相关接口

  searchListUrl: `${ORGANIZATION}unit/union/list`, // 搜索结果列表
  userTypeQueryUrl: `${ORGANIZATION}userType/listQuery`, // 用户类型接口
  unitClearReadNumUrl: `${INSTRUCTION}instruction/read/update`, // 单位指令清除已读
  unitListUrl: `${INSTRUCTION}instruction/unit/all/list`, // 所属单位列表
  instructionDefaultListUrl: `${INSTRUCTION}instruction/list/no-user`, // 指令默认列表
  instructionListUrl: `${INSTRUCTION}instruction/applet/list`, // 指令列表
  instructionDetailUrl: `${INSTRUCTION}instruction/applet/detail`, // 指令详情
  operateInstructionDetailUrl: `${INSTRUCTION}instruction/auction-user/operate`, // 指令详情已读
  auditInstructionUrl: `${INSTRUCTION}instruction/audit`, // 审核通过指令
  cancelInstructionUrl: `${INSTRUCTION}instruction/cancel`, // 撤销指令
  auctionUserListUrl: `${INSTRUCTION}instruction/auction-user/list`, // 完成情况
  myCompanyInfoUrl: `${ORGANIZATION}unit/login-user/info`, // 我的单位当前单位
  myCompanyListUrl: `${ORGANIZATION}unit/union/listByUserId`, // 我的单位列表
  myUnitlistByPhoneUrl: `${ORGANIZATION}user/department/list`, // 根据手机号查询单位
  addCompanyUrl: `${ORGANIZATION}department/member/add`, // 添加单位
  unitTypeListUrl: `${ORGANIZATION}unit-type/list`, // 获取所有单位类型
  userAddUnitUrl: `${ORGANIZATION}user/add/unit`, // 用户添加单位
  userSwitchUnitUrl: `${BASE}gov-login/applet/api/switch/unit`, // 用户切换单位
  instructionListBaseUrl: `${INSTRUCTION}instruction/list-base`, // 获取紧急指令列表
  instructionTemplateListUrl: `${INSTRUCTION}instruction-template/app/list/user`, // 指令模版
  instructionTemplateDetailUrl: `${INSTRUCTION}instruction-template/detail`, // 指令模版详情
  instructionSonTemplateDetailUrl: `${INSTRUCTION}instruction/son/process`, // 子任务指令模版详情
  instructionReNoticeUrl: `${INSTRUCTION}instruction/re-notice`, // 指令模版详情-提醒
  instructionDeployUrl: `${INSTRUCTION}instruction/deploy`, // 创建指令
  instructionDeployCustomizedUrl: `${INSTRUCTION}instruction/deploy-customized`, // 自定义创建指令
  instructionProcessUrl: `${INSTRUCTION}instruction/son/process`, // 指令接受人
  instructionEditUrl: `${INSTRUCTION}instruction/edit`, // 编辑指令
  govFileListUrl: `${GOVCONTENT}file/list`, // 文件
  govArticleListUrl: `${GOVCONTENT}article/list`, // 文章
  govVideoListUrl: `${GOVCONTENT}video/corp_query_list`, // 视频
  govFormListUrl: `${GOVCONTENT}form/api/list`, // 表单
  govInstructionListUrl: `${INSTRUCTION}instruction/app/list`, // 政府人员-指令列表
  getTemplateIdsUrl: `${MIDWARE}subscribe/template/applet/all`, // 获取模版id
  setSubsTplIdsUrl: `${MIDWARE}applet/subscribe/list/save`, // 保存订阅状态
  getCompanyUserListUrl: `${BASE}company-center/application/company/structure/node/query`, // 企业组织结构
  getCompanyUsersListUrl: `${ORGANIZATION}department/user/list`, // 根据人员和部门去查找人员
  getSearchUsersListUrl: `${BASE}company-center/application/company/structure/search`, // 搜索人员
  getUserClassListUrl: `${ORGANIZATION}cluster-group/list`, // 群组

  getParamsDecryptUrl: `${BASE}gov-card-content/ai-forum/page-element/jump/params/encrypt`, // h5数据加密

}
